#pragma once
#include "stdafx.h"
struct Point3D
{
	MY_DATATYPE x;
	MY_DATATYPE y;
	MY_DATATYPE z;

	Point3D(MY_DATATYPE x = 0.0,MY_DATATYPE y = 0.0,MY_DATATYPE z = 0.0)
	{
		this->x = x;
		this->y = y;
		this->z = z;
	}

	Point3D(const Point3D & p)
	{
		this->x = p.x;
		this->y = p.y;
		this->z = p.z;
	}

	int getHashCode2D()
	{
		return 31*(int)(11.0*this->x+3.0*this->y);
	}

	int getHashCode3D()
	{
		return 31*(int)(11.0*this->x+7.0*this->y+3.0*this->z);
	}
};